package cn.edu.huanu.pojo;

import java.time.LocalDateTime;

/**
 * @author hb
 * @date 2025-11-06 10:45:49
 */
public class User {
    private Integer id;
    private String username;
    private String email;
    private String password;
    private LocalDateTime loginTime;
    private Integer role;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;


    public User() {
    }

    public User(Integer id, String username, String password, LocalDateTime loginTime) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.loginTime = loginTime;
    }

    /**
     * @return the role
     */
    public Integer getRole() {
        return role;
    }

    /**
     * @param role the role to set
     */
    public void setRole(Integer role) {
        this.role = role;
    }

    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the loginTime
     */
    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    /**
     * @param loginTime the loginTime to set
     */
    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }

}
